package com.school.demo.config;

import com.github.dreamyoung.mprelation.AutoMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @program: demo
 * @description:
 * @author: Charlotte
 * @create: 2021-04-25 09:13
 **/
@Configuration
public class AutoMapperConfig {
    @Bean
    public AutoMapper autoMapper() {
        return new AutoMapper(new String[] { "com.school.demo.model.auto.Activities","com.school.demo.model.auto.StudentReport" }); //配置实体类所在目录（可多个,暂时不支持通过符*号配置）
    }
}
